package cn.schoolwow.quickflow.domain;

public enum FlowDataFeature {
    /**请求数据*/
    RequestData,
    /**临时数据*/
    TemporaryData,
    /**返回数据*/
    ReturnData,
    /**流程配置数据*/
    FlowConfigData,
    /**跳过存在数据*/
    SkipExistData;

    public static boolean containFeature(FlowDataFeature expectFlowDataFeature, FlowDataFeature[] flowDataFeatures){
        for(FlowDataFeature flowDataFeature:flowDataFeatures){
            if(expectFlowDataFeature.equals(flowDataFeature)){
                return true;
            }
        }
        return false;
    }
}
